 
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Fly Template v3.0，基于 layui 的极简社区页面模版</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="fly,layui,前端社区">
  <meta name="description" content="论坛是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
  <link rel="stylesheet" href="/static/bbs/res/layui/css/layui.css">
  <link rel="stylesheet" href="/static/bbs/res/css/global.css">
</head>
<body>

{% include '/bbs/common/header.html' %}

<div class="layui-hide-xs">
	{% include '/bbs/common/column.html' %}
</div>

{% for u in posts %}

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md8 content detail">
      <div class="fly-panel detail-box">
        <h1>{{u.title}}</h1>
        <div class="fly-detail-info">
          <!-- <span class="layui-badge">审核中</span> -->
          <span class="layui-badge layui-bg-green fly-detail-column">话题</span>
          
          <!--span class="layui-badge" style="background-color: #999;">未结</span>
          <!-- <span class="layui-badge" style="background-color: #5FB878;">已结</span> -->
          
          <!--span class="layui-badge layui-bg-black">置顶</span>
          <span class="layui-badge layui-bg-red">精帖</span-->
          
          <div class="fly-admin-box" data-id="{{u.id}}">
            
            <!-- <span class="layui-btn layui-btn-xs jie-admin" type="set" field="stick" rank="0" style="background-color:#ccc;">取消置顶</span> -->
            
            <!--span class="layui-btn layui-btn-xs jie-admin" type="set" field="status" rank="1">加精</span> 
            <!-- <span class="layui-btn layui-btn-xs jie-admin" type="set" field="status" rank="0" style="background-color:#ccc;">取消加精</span> -->
          </div>
          <span class="fly-list-nums"> 
          	{% if viewObject.vitualauthor %}
          	<span class="layui-btn layui-btn-xs jie-admin" type="del">删除</span>
             {% endif %}
             {% if viewObject.vitualadmin %}
            <span class="layui-btn layui-btn-xs jie-admin" type="set" field="stick" rank="1">置顶</span> 
             {% endif %}
             
            <a href="#comment"><i class="iconfont" title="回答">&#xe60c;</i> {{viewObject.replyNum}}</a>
            <i class="iconfont" title="人气">&#xe60b;</i> 100
          </span>
        </div>
        <div class="detail-about">
          <a class="fly-avatar" href="/bbs/user/home.html?id={{viewObject.postUser.id}}">
            <img src="{{viewObject.postUser.avator}}" alt="作者">
          </a>
          <div class="fly-detail-user">
            <a href="/bbs/user/home.html?id={{viewObject.postUser.id}}" class="fly-link">
              <cite>{{viewObject.postUser.nickname}}</cite>
              <i class="iconfont icon-renzheng" title="认证信息："></i>
              <!--i class="layui-badge fly-badge-vip">VIP3</i-->
            </a>
            <span>{{u.time}}</span>
          </div>
          <div class="detail-hits" id="LAY_jieAdmin" data-id="{{u.id}}">
          	
 			{% if viewObject.vitualaythor %}
             <span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="#">编辑此贴</a></span>
             {% else %}
             <span class=" layui-btn-xs jie-admin" type="edit"></span>
             {% endif %}
             
          </div>
        </div>
        <div class="detail-body photos">
 
	   {{u.content | safe}}
 
 
        </div>
      </div>

      <div class="fly-panel detail-box" id="flyReply">
        <fieldset class="layui-elem-field layui-field-title" style="text-align: center;">
          <legend>回帖</legend>
        </fieldset>

        <ul class="jieda" id="jieda">
        	
        	{% for u in replyUserList %}
        	

          <li data-id="{{u.A.id}}" class="jieda-daan">
            <a name="item-1111111111"></a>
            <div class="detail-about detail-about-reply">
              <a class="fly-avatar" href="">
                <img src="{{u.B.avator}}" alt=" ">
              </a>
              <div class="fly-detail-user">
                <a href="/bbs/user/home.html?id={{u.A.authorid}}" class="fly-link">
                  <cite> {{u.B.nickname}}</cite>
                  <i class="iconfont icon-renzheng" title="认证信息：XXX"></i>
                  <!--i class="layui-badge fly-badge-vip">VIP3</i-->              
                </a>
                
                <span>(楼主)</span>
                <!--
                <span style="color:#5FB878">(管理员)</span>
                <span style="color:#FF9E3F">（社区之光）</span>
                <span style="color:#999">（该号已被封）</span>
                -->
              </div>

              <div class="detail-hits">
                <span>{{u.A.time}}</span>
              </div>

              <!--<i class="iconfont icon-caina" title="最佳答案"></i>-->
            </div>
            <div class="detail-body jieda-body photos">
               {{u.A.content | safe}}
            </div>
            <div class="jieda-reply">
              <span class="jieda-zan zanok" type="zan">
                <i class="iconfont icon-zan"></i>
                <em>{{u.A.point}}</em>
              </span>
              
              <div class="jieda-admin">
              	<span type="reply">
                <i class="iconfont icon-svgmoban53"></i>
                回复
              </span>
                <!--span type="edit">编辑</span>
                <span type="del">删除</span>
                <!-- <span class="jieda-accept" type="accept">采纳</span> -->
              </div>
            </div>
          </li>
          {% endfor %}
          
          
          
          {% if not user and not replyUserList%} 
          <!-- 无数据时 -->
          <li class="fly-none">还没有回复</li>
          {% endif %}
          
          
          
        </ul>
        {% if user %} 
        <div class="layui-form layui-form-pane">
          <form action="/bbs/jie/reply/" method="post">
            <div class="layui-form-item layui-form-text">
              <a name="comment"></a>
              <div class="layui-input-block">
                <textarea id="L_content" name="content" required lay-verify="required" placeholder="请输入内容"  class="layui-textarea fly-editor" style="height: 150px;"></textarea>
              </div>
            </div>
            <div class="layui-form-item">
              <input type="hidden" name="linkPostId" value="{{linkId}}">
              <button class="layui-btn" lay-filter="*" lay-submit>提交回复</button>
            </div>
          </form>
        </div>
         {% endif %}
      
      </div>
    </div>
    <div class="layui-col-md4">
      {% include '/bbs/common/populartopic.html' %}

      {% include '/bbs/common/recommend.html' %}

      <!--div class="fly-panel" style="padding: 20px 0; text-align: center;">
        <img src="/static/bbs/res/images/weixin.jpg" style="max-width: 100%;" alt="layui">
        <p style="position: relative; color: #666;">area3</p>
      </div-->

    </div>
  </div>
</div>

{% endfor %}


{% include '/bbs/common/footer.html' %}

<script src="/static/bbs/res/layui/layui.js"></script>
<script>
layui.cache.page = 'jie';
layui.cache.user = {
  username: '游客'
  ,uid: -1
  ,avatar: '/static/bbs/res/images/avatar/00.jpg'
  ,experience: 83
  ,sex: '男'
};
layui.config({
  version: "3.0.0"
  ,base: '/static/bbs/res/mods/'
}).extend({
  fly: 'index'
}).use(['fly', 'face'], function(){
  var $ = layui.$
  ,fly = layui.fly;
  //如果你是采用模版自带的编辑器，你需要开启以下语句来解析。
  /*
  $('.detail-body').each(function(){
    var othis = $(this), html = othis.html();
    othis.html(fly.content(html));
  });
  */
});
</script>

</body>
</html>